< previous page page_878 next page >

Page 878
Listing A.6. continued
        ' Validate Existance Of Known 32 Bit File Version
        If (Dir(SysInfoPath & "\MSINFO32.EXE") <> "") Then
            SysInfoPath = SysInfoPath & "\MSINFO32.EXE"

        ' Error - File Can Not Be Found...
        Else
            GoTo SysInfoErr
        End If
    ' Error - Registry Entry Can Not Be Found...
    Else
        GoTo SysInfoErr
    End If

    Call Shell(SysInfoPath, vbNormalFocus)

    Exit Sub
SysInfoErr:
    MsgBox "System Information Is Unavailable At This Time", vbOKOnly
End Sub
Finally, Listing A.7 shows the code for the Form_Load event and the two command button click events. Add this to your form.
Type.gifListing A.7. Adding code to the cmdSysInfo_Click event.
Private Sub cmdSysInfo_Click()
  Call StartSysInfo
End Sub

Private Sub cmdOK_Click()
  Unload Me
End Sub

Private Sub Form_Load()
    '
    Me.Caption = "About " & App.Title
    lblVersion.Caption = "Version " & App.Major & "." & App.Minor & "." &
arrow.gifApp.Revision
    lblTitle.Caption = App.Title
    lblDescription = App.FileDescription
    Image1.Picture = SQLVBMain.Icon
    Me.Icon = SQLVBMain.Icon
    lblDisclaimer = ""
    '
End Sub
Now save the form as SQLVBABO.FRM and save the project.

 
< previous page page_878 next page >

If you like this book, buy it!